/*   1:    */ package com.tanke;
/*   2:    */ 
/*   3:    */ import java.util.Vector;
/*   4:    */ 
/*   5:    */ class Hero
/*   6:    */   extends Tanke
/*   7:    */ {
/*   8:225 */   Vector<Shot> ss = new Vector();
/*   9:226 */   Shot s = null;
/*  10:227 */   boolean isSupper = true;
/*  11:    */   
/*  12:    */   public Hero(int x, int y)
/*  13:    */   {
/*  14:230 */     super(x, y);
/*  15:    */   }
/*  16:    */   
/*  17:    */   public void shotEnemy()
/*  18:    */   {
/*  19:235 */     switch (this.direct)
/*  20:    */     {
/*  21:    */     case 0: 
/*  22:238 */       this.s = new Shot(this.x, this.y - 20, 0);
/*  23:239 */       this.ss.add(this.s);
/*  24:240 */       break;
/*  25:    */     case 1: 
/*  26:242 */       this.s = new Shot(this.x + 20, this.y, 1);
/*  27:243 */       this.ss.add(this.s);
/*  28:244 */       break;
/*  29:    */     case 2: 
/*  30:246 */       this.s = new Shot(this.x, this.y + 20, 2);
/*  31:247 */       this.ss.add(this.s);
/*  32:248 */       break;
/*  33:    */     case 3: 
/*  34:250 */       this.s = new Shot(this.x - 20, this.y, 3);
/*  35:251 */       this.ss.add(this.s);
/*  36:    */     }
/*  37:254 */     Thread t = new Thread(this.s);
/*  38:255 */     t.start();
/*  39:    */   }
/*  40:    */ }


/* Location:           C:\Users\Cheese\Desktop\坦克大战\坦克大战.jar
 * Qualified Name:     com.tanke.Hero
 * JD-Core Version:    0.7.0.1
 */